package com.guigu.buy.service;

import com.github.pagehelper.PageInfo;
import com.guigu.buy.dto.MerchantUtil;
import com.guigu.buy.pojo.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.buy.utils.PageUtils;
import com.guigu.buy.vo.MerchantVo;

import java.util.List;
/**
 * <p>
 *  服务类
 * </p>
 *
 * @author com.guigu
 * @since 2024-05-15
 */
public interface IMerchantService extends IService<Merchant> {
    
    PageInfo<MerchantUtil> queryAll(int pageNo, int pageSize, MerchantVo vo);

    int insertMerchant(Merchant merchant);
    /**
     * 查找所有商户
     * @return 商户列表
     */
    List<Merchant> findAllMerchants();
    /**
     * 根据ID查找商户
     * @param id 商户ID
     * @return 商户对象
     */
    Merchant findMerchantById(Integer id);

    PageUtils<Merchant> audit(int pageNo, int pageSize,MerchantVo vo);

    PageUtils<Merchant> querylist(int pageNo, int pageSize, MerchantVo vo);
}
